/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Chamado;

import java.util.Date;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.IdGeneratorStrategy;

/**
 *
 * @author Josiane
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Chamado {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long numeroChamado;

    @Persistent
    private String nomeSolic;

    @Persistent
    private String setor;

    @Persistent
    private Date dataHora;

    @Persistent
    private String descricaoProblema;

    @Persistent
    private String descricaoSolucao;

    @Persistent
    private boolean situacaoResolvida;
    
    

    public Chamado(String nomeSolic, String setor, Date dataHora,String descricaoProblema, String descricaoSolucao) {
        this.nomeSolic = nomeSolic;
        this.setor = setor;
        this.dataHora = dataHora;
        this.descricaoProblema = descricaoProblema;
        this.descricaoSolucao = descricaoSolucao;
    }

    public Long getNumeroChamado() {
       return numeroChamado;
    }

    
        public void setNome(String nomeSolic){
        this.nomeSolic = nomeSolic;
    }

    public String getNome() {
        return nomeSolic;

    }

    public void setSetor(String setor){
        this.setor = setor;
    }

    public String getSetor (){
        return setor;
    }

    public void setDataHora(Date dataHora) {
        this.dataHora = dataHora;
    }

    public Date getDataHora() {
        return dataHora;
    }

    public String getDescricaoProblema() {
        return descricaoProblema;
    }

    
    public void setDescricaoProblema(String descricaoProblema) {
        this.descricaoProblema = descricaoProblema;
    }

    public String getDescricaoSolucao() {
        return descricaoSolucao;
    }

    public void setDescricaoSolucao(String descricaoSolucao) {
        this.descricaoSolucao = descricaoSolucao;
    }

    public boolean getSituacaoResolvida() {
        return situacaoResolvida;
    }

    public void setSituacaoResolvida(boolean situacaoResolvida) {
        this.situacaoResolvida = situacaoResolvida;
    }

}
